package com.pansoft.kline.base;

import android.os.Bundle;
import androidx.annotation.Nullable;

/**
 * @author : zzj
 * @e-mail : zhangzhijun@pansoft.com
 * @date : 2018/11/7 20:13
 * @desc :
 * @version: 1.0
 */
public abstract class KlineBaseActivity extends com.efounder.chat.activity.BaseActivity {

//    protected Unbinder mRootUnBinder;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if(isLoadingManager()){

        }

    }

    /**
     * 初始化控件
     * @param savedInstanceState
     */
    protected  void initView(Bundle savedInstanceState){
//        mRootUnBinder = ButterKnife.bind(this);
    }

    /**
     *
     */
    protected  void onStateRefresh(){

    }


    public boolean isLoadingManager(){
        return false;
    }


    /**
     * 清除任务，防止内存泄漏
     */
    protected void unDisposable(){

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        unDisposable();
    }
}
